package com.jyszkj.map.view

import android.view.MotionEvent
import com.jyszkj.map.listener.MapClickListener
import org.osmdroid.views.MapView
import org.osmdroid.views.overlay.Marker

class NonClickableMarker(mapView: MapView, val mapClickListener: MapClickListener? = null, val obj: Any? = null) : Marker(mapView) {
    override fun onSingleTapConfirmed(e: MotionEvent?, mapView: MapView?): Boolean {
        // 不执行任何操作，返回 false 表示不消费点击事件
        //mapClickListener?.onMarkerClick(obj)
        return false
    }
}